﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F200_Doi_tac.aspx.cs" Inherits="DanhMuc_F200_Doi_tac" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 268435232px;
        }
        .style2
        {
            width: 13%;
            height: 26px;
        }
        .style3
        {
            width: 30%;
            height: 26px;
        }
        .cssTextBox
        {}
        .style5
        {
            width: 13%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
    <!-- Lọc dữ liệu đối tác   -->
	    <tr>
            <td colspan="4" class="cssPageTitleBG">
                <asp:label id="v_lbl_nhan_loc_doi_tac" runat="server" Text="Lọc dữ liệu đối tác" CssClass="cssPageTitle"/>
            </td>
	    </tr>
	    <tr>
		    <td align="right" class="style2">
			    <asp:label id="lbl_ho_ten_s" CssClass="cssManField" runat="server" 
                    Text="Họ và tên"/>
		    </td>
		    <td>
			    <asp:textbox id="m_txt_ho_ten_s" CssClass="cssTextBox"  runat="server" 
                    MaxLength="64" Width="96%" />
		    </td>
            <td align="right" style="width:15%;">
			<asp:label id="Label1" CssClass="cssManField" runat="server" 
                Text="Email" />
		    </td>
		    <td style="width:30%;">
			<asp:textbox id="m_txt_email_s" CssClass="cssTextBox"  runat="server" 
                MaxLength="64" Width="96%" />
		    </td>
		</tr>
        <tr>
            <td align="right" class="style5">&nbsp;<asp:label id="Label8" CssClass="cssManField" runat="server" 
                Text="Giới tính" /></td>
            <td>
                   <asp:RadioButtonList ID="rdl_gender_check" runat="server" 
                        RepeatDirection="Horizontal" Width="167px">
                        <asp:ListItem Selected="True">All</asp:ListItem>
                        <asp:ListItem Value="Male">Nam</asp:ListItem>
                        <asp:ListItem Value="Female">Nữ</asp:ListItem>
                    </asp:RadioButtonList>
            </td>
             <td align="right">
                    <asp:label id="Label7" CssClass="cssManField" runat="server" 
                Text="Tháng sinh nhật" />
		            </td>
                <td align="left" colspan="2">
                    &nbsp;<asp:DropDownList id="m_cbo_thang_sn_dt" runat="server" 
                        CssClass="cssDorpdownlist"  >
                        <asp:ListItem Selected="True" Value="0">Tất cả</asp:ListItem>
                        <asp:ListItem Value="1">1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                    </td>
        </tr>
        <tr>
            <td align="right" class="style5">
                    <asp:label id="Label3" CssClass="cssManField" runat="server" 
                Text="Từ khóa tìm kiếm" />
		            </td>
            <td> &nbsp;<asp:TextBox ID="m_txt_tu_khoa_tim_kiem" runat="server"  Width="96%" CssClass="cssTextBox"></asp:TextBox></td>
             <td align="left" colspan="2">
                      <asp:label id="lbl_tu_khoa" CssClass="cssLabel" runat="server" 
                Text="(Từ khóa tìm kiếm: Tên đối tác, số điện thoại hoặc email...)"/>
                     </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <asp:button id="m_btn_xem_toan_bo" accessKey="v" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xem toàn bộ" Height="22px" 
                    onclick="m_btn_xem_toan_bo_Click" />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
               <asp:button id="m_btn_loc_du_lieu" accessKey="l" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Lọc dữ liệu" 
                                    Height="23px"/> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			   <asp:button id="m_btn_xuat_excel" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xuất Excel" Height="22px"/> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:button id="m_btn_them_moi_s" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Thêm mới" Height="22px" 
                    onclick="btn_them_moi_Click"/>
                        
            </td>
        </tr>

    <!-- Nhãn Thêm, sửa đối tác hoặc danh sách đối tác-->
    <tr>
		<td class="cssPageTitleBG" colspan="4">
		    <asp:label id="m_lbl_nhan_doi_tac" runat="server" CssClass="cssPageTitle" Text="Kết quả lọc dữ liệu"/>
		</td>
	</tr>
    <!-- Lưới dữ liệu -->	
	<tr>
		<td align="center" colspan="5" valign="top">
		    <asp:GridView ID="m_grv_dm_doi_tac" runat="server" CellPadding="4" 
                AutoGenerateColumns="False" Width="98%" BackColor="White" BorderColor="#3366CC" 
                BorderStyle="None" BorderWidth="1px">
                <Columns>
                    <asp:TemplateField HeaderText="STT">
                        <ItemTemplate><%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="HO_TEN" HeaderText="Họ và tên" />
                    <asp:BoundField DataField="EMAIL" HeaderText="Email" />
                    <asp:BoundField DataField="SO_DIEN_THOAI" HeaderText="Số điện thoại" />
                    <asp:BoundField DataField="DIA_CHI" HeaderText="Địa chỉ" />
                    <asp:BoundField DataField="NOI_CONG_TAC" HeaderText="Nơi công tác" />
                    <asp:BoundField DataField="VI_TRI_CONG_TAC" HeaderText="Vị trí công tác" />
                      <asp:TemplateField HeaderText="Sửa">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Sửa" CausesValidation="false"><center><img src="../Images/document-edit.png" width="20px" height="20px" alt="Sửa" /></center></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                         <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')" ToolTip="Xóa dự án này" CausesValidation="false"><center><img src="../Images/del.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />

                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />

            </asp:GridView> 
        </td>
	</tr>	

    <!-- Thêm , Cập nhật đối tác -->
	    <tr>
		<td align="right" class="style2">
			<asp:label id="m_lbl_ho_ten" CssClass="cssManField" runat="server" 
                Text="Họ và tên" Visible="false"/>
		</td>
		<td>
			<asp:textbox id="m_txt_ho_ten" CssClass="cssTextBox"  runat="server" 
                MaxLength="64" Width="96%" Visible="false" />
		</td>
        <td align="right" style="width:15%;">
			<asp:label id="m_lbl_ngay_sinh" CssClass="cssManField" runat="server" 
                Text="Ngày sinh" Visible="false" />
		</td>
		<td style="width:30%;">
			<asp:textbox id="m_txt_ngay_sinh" CssClass="cssTextBox"  runat="server" 
                MaxLength="64" Width="96%" Visible="false"/>
		</td>
		</tr>
        <tr>
            <td align="right" class="style5">
                <asp:label id="m_lbl_gioi_tinh" CssClass="cssManField" runat="server" Text="Giới tính" Visible="false" /></td>
                    <td>
                       <asp:RadioButtonList ID="m_rdl_gender" runat="server" 
                            RepeatDirection="Horizontal" Width="167px" Visible="false">
                            <asp:ListItem Value="Male" Selected="True">Nam</asp:ListItem>
                            <asp:ListItem Value="Female">Nữ</asp:ListItem>
                        </asp:RadioButtonList></td>
           <td align="right" >
		    <asp:label id="m_lbl_so_dt" runat="server" CssClass="cssManField" 
                Text="Số điện thoại" Visible="false"/>
		    </td>
		    <td align="left">
		        <asp:textbox id="m_txt_so_dien_thoai" accessKey="m" runat="server" 
                    CssClass="cssTextBox"  Width="96%" Visible="false" />
		    </td>
        </tr>
	    <tr>
            <td align="right" class="style5">
			    <asp:label id="m_lbl_email" CssClass="cssManField" runat="server" 
                    Text="Email" Visible="false" />
		    </td>
		    <td style="width:30%;">
			    <asp:textbox id="m_txt_email" CssClass="cssTextBox"  runat="server" 
                     Width="96%" TextMode="MultiLine" Height="20px" Visible="false"/>
		    </td>
            <td align="right" >
		        <asp:label id="m_lbl_dia_chi" runat="server" CssClass="cssManField" 
                    Text="Địa chỉ" Visible="false" />
		    </td>
		    <td align="left">
		        <asp:textbox id="m_txt_dia_chi" accessKey="m" runat="server" 
                    CssClass="cssTextBox" TextMode="MultiLine" Width="96%" Height="20px" Visible="false" ></asp:textBox>
		    </td>
		</tr>
    <tr>
		<td align="right" class="style5" >
		    <asp:label id="lbl_noi_cong_Tac" runat="server" CssClass="cssManField" 
                Text="Nơi công tác" Visible="false" />
		</td>
		<td align="left">
		    <asp:textbox id="m_txt_noi_cong_tac" accessKey="m" runat="server" 
                CssClass="cssTextBox" Width="96%" TextMode="MultiLine" Height="20px" Visible="false"/>
		</td>
        <td align="right" >
		    <asp:label id="lbl_vi_tri_cong_tac" runat="server" CssClass="cssManField" 
                Text="Vị trí công tác" Visible="false"/>
		</td>
		<td align="left">
		    <asp:textbox id="m_txt_vi_tri_cong_tac" accessKey="m" runat="server" 
                CssClass="cssTextBox"  Width="96%" TextMode="MultiLine" Height="20px" Visible="false"/>
		</td>
	</tr>
	<tr>
		<td colspan="4" align="center" class="style1">
			<asp:button id="m_btn_them_doi_tac" accessKey="c" CssClass="cssButton" 
                runat="server" Width="98px" Text="Thêm đối tác" 
                onclick="m_cmd_tao_moi_Click" Visible="false"/>
			<asp:button id="m_btn_cap_nhat" accessKey="u" CssClass="cssButton" 
                runat="server" Width="98px" Text="Cập nhật" Visible="false"  />
			<asp:button id="m_btn_xoa_trang" accessKey="r" CssClass="cssButton" runat="server" 
                Width="98px" Text="Xóa trắng" Visible="false" 
                onclick="m_btn_xoa_trang_Click" />
		</td>
	</tr>
    
    
</table>
</asp:Content>

